<include file="Property/head"/>
<body style="padding-top: 38px">
    <div class="header">
        <a href="javascript:history.back(-1)"><img src="__IMG__/Return.png" alt=""></a>
        <i>BTC</i>
        <span>{$btc.z7}</span>
        <p class="btc_price"></p>
    </div>
    <div class="title">
        <div>全部</div>
        <div>转入</div>
        <div>转出</div>
    </div>
    <ul>
        <li>
            <img src="__IMG__/sd2.png" alt="">
            <span>兑换扣款</span>
            <p>[WFX-减少]</p>
            <em>2019-04-10</em>
            <i>100.00000</i>
        </li>
        <li>
            <img src="__IMG__/sd2.png" alt="">
            <span>兑换扣款</span>
            <p>[WFX-减少]</p>
            <em>2019-04-10</em>
            <i>100.00000</i>
        </li>
        <li>
            <img src="__IMG__/sd2.png" alt="">
            <span>兑换扣款</span>
            <p>[WFX-减少]</p>
            <em>2019-04-10</em>
            <i>100.00000</i>
        </li>
        <li>
            <img src="__IMG__/sd2.png" alt="">
            <span>兑换扣款</span>
            <p>[WFX-减少]</p>
            <em>2019-04-10</em>
            <i>100.00000</i>
        </li>
        <li>
                <img src="__IMG__/sd2.png" alt="">
                <span>兑换扣款</span>
                <p>[WFX-减少]</p>
                <em>2019-04-10</em>
                <i>100.00000</i>
            </li>
    </ul>
</body>
<script src="__COMMON__/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script>

    ajax_get();
    setInterval(function(){
        ajax_get()
    }, 10000);

    function ajax_get() {
        $.ajax({
            type:"post",
            url:"{:U('price')}",
            data:{
                type:'BTC',
            },
            dataType:"json",
            success:function(data){
                // console.log(data);
                if(data){
                    // alert(data.btc.close);
                    $(".btc_price").text("≈￥"+(parseFloat(data.close)*{$btc.z7}).toFixed(2));
                    // $(".eth>em>span").text((parseFloat(data.close)*{$data.z9}).toFixed(2));

                }else{
                    alert(data.msg);
                    // window.location.href=data.data;
                }
            }
        });
    }
</script>

</html>